<?php
namespace app\index\controller;

use app\index\BaseController;
use think\facade\View;
class Index extends BaseController
{
	//首页
    public function index()
    {
    	// 模板变量赋值
        View::assign('name','ThinkPHP');
        View::assign('email','thinkphp@qq.com');
        return View::fetch('index/index');
        return 123;
    }
	
	
	//分类页
    public function category($id = 1)
    {
        return $id;
    }
    
    
    //文章详情页
    public function article($id = 1)
    {
        return View::fetch('index/article');
    }
}
